package cn.jx.asc.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lhg
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_threshold")
@ApiModel(value="Threshold对象", description="")
public class Threshold implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    private String maxRainfull;

    private String maxInjectionVolume;

    private String maxAirHumidity;

    private String maxAirTemperature;

    private String minAirTemperature;

    private String maxSoilHumidity;

    private String maxSoilTemperature;

    private String minSoilTemperature;

    private String maxLiquidLevel;

    private String minLiquidLevel;

    private String maxAngle;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;

    public Threshold(Integer id, String maxLiquidLevel, String minLiquidLevel, String maxAngle, String maxSoilHumidity) {
        this.id = id;
        this.maxLiquidLevel = maxLiquidLevel;
        this.minLiquidLevel = minLiquidLevel;
        this.maxAngle = maxAngle;
        this.maxSoilHumidity = maxSoilHumidity;

    }

    public Threshold() {
    }
}
